<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>::Happy - DTAC Prepaid Phone::</title>
<link href="${RESOURCE}/css/global.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/global-en.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/customize.css" rel="stylesheet" type="text/css">
<script language=JavaScript>
<!--
function printWindow(){
browserVersion = parseInt(navigator.appVersion)
if (browserVersion >= 4) window.print()
}

function include(xUrl,xId) {
  var xmlhttp = false;
  /*@cc_on @*/
  /*@if (@_jscript_version >= 5)

  // JScript gives us Conditional compilation, we can cope with old IE versions.
  // and security blocked creation of the objects.
  try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
   } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
   }

  /*@end @*/
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
  }

  xmlhttp.open("GET", xUrl,true);
  xmlhttp.onreadystatechange=function() {
          if (xmlhttp.readyState==4) {
                document.getElementById(xId).innerHTML = xmlhttp.responseText;
          }
  }
  xmlhttp.send(null)
}
//-->
</script> 
<script type="text/JavaScript" src="${RESOURCE}/callscreening/scripts/CallScreening_normal.js"></script>
<script type="text/JavaScript" src="${RESOURCE}/callscreening/scripts/CallScreening_black.js"></script>
<script type="text/JavaScript" src="${RESOURCE}/callscreening/scripts/CallScreening_white.js"></script>
<script language="javascript">
	var MSG_B_05 = "<!--SVLT.VAR:MSG_B_05-->";
	var MSG_B_08 = "<!--SVLT.VAR:MSG_B_08-->";
	var MSG_B_09 = "<!--SVLT.VAR:MSG_B_09-->";
	var MSG_B_11 = "<!--SVLT.VAR:MSG_B_11-->";
	var MSG_B_12 = "<!--SVLT.VAR:MSG_B_12-->";
	var MSG_B_13 = "<!--SVLT.VAR:MSG_B_13-->";
	var MSG_B_21 = "<!--SVLT.VAR:MSG_B_21-->";
	var MSG_B_22 = "<!--SVLT.VAR:MSG_B_22-->";
	var MSG_B_23 = "<!--SVLT.VAR:MSG_B_23-->";
	var MSG_B_24 = "<!--SVLT.VAR:MSG_B_24-->";
	var MSG_B_25 = "<!--SVLT.VAR:MSG_B_25-->";
	var MSG_B_26 = "<!--SVLT.VAR:MSG_B_26-->";
	var MSG_B_27 = "<!--SVLT.VAR:MSG_B_27-->";
	var MSG_B_28 = "<!--SVLT.VAR:MSG_B_28-->";
	var MSG_B_29 = "<!--SVLT.VAR:MSG_B_29-->";
	var MSG_B_30 = "<!--SVLT.VAR:MSG_B_30-->";

	var MSG_W_05 = "<!--SVLT.VAR:MSG_W_05-->";
	var MSG_W_08 = "<!--SVLT.VAR:MSG_W_08-->";
	var MSG_W_09 = "<!--SVLT.VAR:MSG_W_09-->";
	var MSG_W_11 = "<!--SVLT.VAR:MSG_W_11-->";
	var MSG_W_12 = "<!--SVLT.VAR:MSG_W_12-->";
	var MSG_W_13 = "<!--SVLT.VAR:MSG_W_13-->";
	var MSG_W_21 = "<!--SVLT.VAR:MSG_W_21-->";
	var MSG_W_22 = "<!--SVLT.VAR:MSG_W_22-->";
	var MSG_W_23 = "<!--SVLT.VAR:MSG_W_23-->";
	var MSG_W_24 = "<!--SVLT.VAR:MSG_W_24-->";
	var MSG_W_25 = "<!--SVLT.VAR:MSG_W_25-->";
	var MSG_W_26 = "<!--SVLT.VAR:MSG_W_26-->";
	var MSG_W_27 = "<!--SVLT.VAR:MSG_W_27-->";
	var MSG_W_28 = "<!--SVLT.VAR:MSG_W_28-->";
	var MSG_W_29 = "<!--SVLT.VAR:MSG_W_29-->";
	var MSG_W_30 = "<!--SVLT.VAR:MSG_W_30-->";

//##### Summery Function #####
	function pageInit(){

		<!--SVLT.LOOP:B_Title_ON-->
		document.getElementById('B_bgTitle').style.backgroundColor = '#FF0000';
		<!--SVLT.END:B_Title_ON-->
		<!--SVLT.LOOP:B_Title_OFF-->
		document.getElementById('B_bgTitle').style.backgroundColor = '#999999';
		<!--SVLT.END:B_Title_OFF-->

		<!--SVLT.LOOP:W_Title_ON-->
		document.getElementById('W_bgTitle').style.backgroundColor = '#FF0000';
		<!--SVLT.END:W_Title_ON-->
		<!--SVLT.LOOP:W_Title_OFF-->
		document.getElementById('W_bgTitle').style.backgroundColor = '#999999';
		<!--SVLT.END:W_Title_OFF-->

		document.getElementById('B_Display').style.display='';
		document.getElementById('B_Edit').style.display='none';
		document.getElementById('W_Display').style.display='';
		document.getElementById('W_Edit').style.display='none';

		var d = document.form1;
		var B_DateList = d.Schedule_B_DateList.value;
		var B_TimeList = d.Schedule_B_TimeList.value;
		var B_Schedule = getSchedule(B_DateList, B_TimeList);

		var W_DateList = d.Schedule_W_DateList.value;
		var W_TimeList = d.Schedule_W_TimeList.value;
		var W_Schedule = getSchedule(W_DateList, W_TimeList);

			if (B_Schedule == ""){
			B_Schedule = "No setting";
		}else{
			B_Schedule = "Specified day/time period" + B_Schedule;
		}

		if (W_Schedule == ""){
			W_Schedule = "No setting";
		}else{
			W_Schedule = "Specified day/time period" + W_Schedule;
		}

		var B_DIV = document.getElementById("B_Display_Schedule");
		B_DIV.innerHTML = B_Schedule;
		
		var W_DIV = document.getElementById("W_Display_Schedule");
		W_DIV.innerHTML = W_Schedule;

		/*document.getElementById('B_Display_Total').style.display='none';
		document.getElementById('W_Display_Total').style.display='none';
		if(<!--SVLT.VAR:B_Display_Total_Phone--> > 0){
			document.getElementById('B_Display_Total').style.display='';
		}
		if(<!--SVLT.VAR:W_Display_Total_Phone--> > 0){
			document.getElementById('W_Display_Total').style.display='';
		}*/

		doTableHeight();
	}

	function doEdit(value){
		var d = document.form1;
		
		if ( (d.EditMode.value == "B") || (d.EditMode.value == "W") ){
			if (confirm(MSG_B_13)){
				d.reset();
			}else{
				return;
			}
		}
		if (value=='B'){
			document.getElementById('B_Display').style.display='none';
			document.getElementById('B_Edit').style.display='';
			document.getElementById('W_Display').style.display='';
			document.getElementById('W_Edit').style.display='none';
			d.EditMode.value = "B";
			B_DisplayPhone("");
			B_DisplayPromptIDDesc();
		}else if (value=='W'){
			document.getElementById('B_Display').style.display='';
			document.getElementById('B_Edit').style.display='none';
			document.getElementById('W_Display').style.display='none';
			document.getElementById('W_Edit').style.display='';
			d.EditMode.value = "W";
			W_DisplayPhone("");
			W_DisplayPromptIDDesc();	
		}else{
			document.getElementById('B_Display').style.display='';
			document.getElementById('B_Edit').style.display='none';
			document.getElementById('W_Display').style.display='';
			document.getElementById('W_Edit').style.display='none';
			d.EditMode.value = "N";
		}
	}

	function doTableHeight(){
		var d = document.form1;
		var mul = 15;
		var B_PhoneList = d.B_PhoneList.value;
		var W_PhoneList = d.W_PhoneList.value;
		var bArr = B_PhoneList.split(",");
		var wArr = W_PhoneList.split(",");
		var maxPhone = 0;
		if (bArr.length > wArr.length){
			maxPhone = bArr.length;
		}else{
			maxPhone = wArr.length;
		}
		var high = parseInt((maxPhone * 16) + mul);
		document.getElementById('B_Display_Phone').style.height = high;
		document.getElementById('W_Display_Phone').style.height = high;
		document.getElementById('B_Table_Phone').style.height = high;
		document.getElementById('W_Table_Phone').style.height = high;
	}


//##### General Function #####
	var win = null;
	var tar = null;
	var DAY_DESC = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday".split(",");		//For english template
	//var DAY_DESC = "จันทร์,อังคาร,พุธ,พฤหัสบดี,ศุกร์,เสาร์,อาทิตย์".split(",");				//For thai template
	var MSG_CANCEL = "You wish to unsubscribe this service? <br>Please press 'OK' to confirm.";		//For english template
	//var MSG_CANCEL = "คุณเลือกยกเลิกการใช้บริการ <br>กรุณากด 'ตกลง' เพื่อยืนยันการทำรายการค่ะ";		//For thai template

	function getSchedule(dateList, timeList){
		var desc = "";
		var dateDesc = "";
		var timeDesc = "";
		var bAllTime = false;
		
		if (dateList != ""){
			if (dateList.indexOf("Monday") > -1){
				dateDesc += DAY_DESC[0] + " ";
			}
			if (dateList.indexOf("Tuesday") > -1){
				dateDesc += DAY_DESC[1] + " ";
			}
			if (dateList.indexOf("Wednesday") > -1){
				dateDesc += DAY_DESC[2] + " ";
			}
			if (dateList.indexOf("Thursday") > -1){
				dateDesc += DAY_DESC[3] + " ";
			}
			if (dateList.indexOf("Friday") > -1){
				dateDesc += DAY_DESC[4] + " ";
			}
			if (dateList.indexOf("Saturday") > -1){
				dateDesc += DAY_DESC[5] + " ";
			}
			if (dateList.indexOf("Sunday") > -1){
				dateDesc += DAY_DESC[6] + " ";
			}
			dateDesc = genDataSeparate(dateDesc);
		}

		if (timeList != ""){
			var arr = timeList.split(",");
			for (var i = 0; i < arr.length; i++){
				var tmp = arr[i].split("-");
				if (tmp.length == 2){
					var v1 = parseInt(tmp[0]);
					var v2 = parseInt(tmp[1]);
					if ( (v1==0) && (v2==48) )
						bAllTime = true;
					if (timeDesc != "")
						timeDesc += ", ";
					timeDesc += getTimeFromIndex(v1) + "-" + getTimeFromIndex(v2);
				}
			}

			if (arr.length==2){
				var subArr = arr[0].split("-");
				var time1 = parseInt(subArr[0]);
				var time2 = parseInt(subArr[1]);

				var subArr2 = arr[1].split("-");
				var time3 = parseInt(subArr2[0]);
				var time4 = parseInt(subArr2[1]);

				if (time1 < time3){
					if (time2==time3){
						timeDesc = getTimeFromIndex(time1) + "-" + getTimeFromIndex(time4);
					}
				}else{
					if (time4==time1){
						timeDesc = getTimeFromIndex(time3) + "-" + getTimeFromIndex(time2);
					}
				}
			}
		}
		
		if (dateDesc != ""){
			desc = " " + dateDesc;
		}
		if (timeDesc != ""){
			if (timeDesc == "00.00-24.00"){
				timeDesc = ",all day";
			}
			if (desc != "")
				desc += " ";
			desc += timeDesc;
		}
		if (desc != ""){
			desc = " " + desc;
		}
		return desc;
	}

	function genDataSeparate(value){
		var arr = value.split(" ");
		var len = arr.length - 1;
		var tmp = "";
		for (var i = 0; i < len; i++){
			if (i > 0){
				if ( (i+1) >= len){
					tmp += " and ";
				}else{
					tmp += " ";
				}
			}
			tmp += arr[i];
		}
		return tmp;
	}

//##### Black Mode Function #####
	function B_DisplayPhone(PhoneEdit){
		var TableHTML = "";
		var totalMsg = MSG_B_28;
		var total = 0;
		var list = document.form1.B_PhoneList.value;
		if (list != ''){
			var arr = list.split(",");
			total = arr.length;
			for (var i = 0; i < arr.length; i++){
				if (PhoneEdit==arr[i]){
					TableHTML += (i+1) + ". <input type='text' name='B_txtEditPhone' size='11' maxlength='10' onkeyup='onlyNumber(this);' onblur='onlyNumber(this);' value='" + arr[i] + "'>";
					TableHTML += "&nbsp;&nbsp;<a href='javascript:B_EditPhone(\"" + arr[i] + "\")'><img src='${RESOURCE}/eng/images/14_webservice_submit.gif' border='0'></a>";
					TableHTML += "&nbsp;<a href='javascript:B_DisplayPhone(\"\")'><img src='${RESOURCE}/eng/images/14_webservice_cancel.gif' border='0'></a><br></td>";
				}else{
					TableHTML += (i+1) + ". " + genSpace(arr[i], i);
					TableHTML += "&nbsp;&nbsp;<a href='javascript:B_DisplayPhone(\"" + arr[i] + "\")'><img src='${RESOURCE}/eng/images/04_station_credit_edit_s.gif' border='0'></a>";
					TableHTML += "&nbsp;<a href='javascript:B_DeletePhone(\"" + arr[i] + "\")'><img src='${RESOURCE}/eng/images/04_station_credit_delete.gif' border='0'></a><br></td>";
				}
			}
		}
		totalMsg = totalMsg.replace("@total", total);
		var oDiv = document.getElementById("B_Phone");
		oDiv.innerHTML = TableHTML;
		var oDiv2 = document.getElementById("B_Edit_Total_Phone");
		oDiv2.innerHTML = totalMsg;
		B_ControlPhoneButton();
		doTableHeight();
	}

	function B_Submit2(){
		var d = document.form1;
		if (d.CanSave.value != "Y")
			return;
		
		d.mode.value = "B";

		var B_PhoneList = d.B_PhoneList.value;
		var W_PhoneList = d.W_PhoneList.value;

		var B_DateList = "";
		var B_TimeList = "";
		var W_DateList = d.Schedule_W_DateList.value;
		var W_TimeList = d.Schedule_W_TimeList.value;

		var isPhoneListEmpty = true;
		var isSchedule = d.B_Schedule[1].checked;
		var isConflict = false;
		var ProgramMode = d.ProgramMode.value;

		if (d.B_PhoneList.value!=""){
			isPhoneListEmpty = false;
		}

		if (isSchedule){
			isConflict = B_Is_Conflict();
			B_DateList = B_GetScheduleDateList();
			B_TimeList = B_GetScheduleTimeList();

			if (isSelectFullTime(B_DateList, B_TimeList)){
				isSchedule = false;
				B_DateList = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday";
				B_TimeList = "0-48";
			}
		}else{
			B_DateList = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday";
			B_TimeList = "0-48";
		}
		
		var newProgramMode = "";
	
		if ( (ProgramMode=="I") || (ProgramMode=="B") || (ProgramMode=="SB") ){
			if (isPhoneListEmpty){
				B_PhoneList = "";
				B_DateList = "";
				B_TimeList = "";
				W_DateList = "";
				W_TimeList = "";
				newProgramMode = "I";
			}else{
				if (!isSchedule){
					W_DateList = "";
					W_TimeList = "";
					newProgramMode = "B";
				}else{
					W_DateList = "";
					W_TimeList = "";
					newProgramMode = "SB";
				}
			}
		}else if (ProgramMode=="Schedule"){
			if (isPhoneListEmpty){
				B_PhoneList = "";
				B_DateList = "";
				B_TimeList = "";
				newProgramMode = "SW";
			}else{
				if (!isSchedule){
					W_DateList = "";
					W_TimeList = "";
					newProgramMode = "B";
				}else{
					if (isConflict){
						W_DateList = "";
						W_TimeList = "";
					}
					if (W_TimeList==""){
						newProgramMode = "SB";
					}else{
						newProgramMode = "Schedule";
					}
				}
			}
		}else{			//ProgramMode = W or SW
			if (isPhoneListEmpty){
				B_PhoneList = "";
				B_DateList = "";
				B_TimeList = "";
				newProgramMode = ProgramMode;
			}else{
				if (!isSchedule){
					W_DateList = "";
					W_TimeList = "";
					newProgramMode = "B";
				}else{
					if (isConflict){
						W_DateList = "";
						W_TimeList = "";
					}
					if (W_TimeList==""){
						newProgramMode = "SB";
					}else{
						newProgramMode = "Schedule";
					}
				}
			}
		}

		var B_USE = "";
		var W_USE = "";
		if ( (newProgramMode=="B") || (newProgramMode=="SB") || (newProgramMode=="Schedule") ){
			B_USE = "be";
		}else{
			B_USE = "not be";
		}
		if ( (newProgramMode=="W") || (newProgramMode=="SW") || (newProgramMode=="Schedule") ){
			W_USE = "be";
		}else{
			W_USE = "not be";
		}

		/*var MSG = "<div align='left'>Your selections will be set as :<br>" + replaceChar(W_PhoneList, ",", ", ") + " for Received Call which will " + W_USE + " used and the time slot to receive these calls is " + getSchedule(W_DateList, W_TimeList) + "<br><br>";
		MSG += "" + replaceChar(B_PhoneList, ",", ", ") + " for Denied Call which will " + B_USE + " used and the time slot to deny these calls is " + getSchedule(B_DateList, B_TimeList) + "";
		MSG += "<br><br>Please press 'Accept' to confirm your change (press 'Cancel' if you don't wish to change)";*/

		var MSG_B = "";
		var MSG_W = "";
		if (W_PhoneList != ""){
			MSG_W = replaceChar(W_PhoneList, ",", ", ") + " <b><font color='#0000FF'>for Accepted-calls</font></b>";
			MSG_W += " which <u><b>will " + W_USE + " used</b></u>";
			if (W_DateList != ""){
				MSG_W += " and <b>the time slot to accept these calls is</b> " + getSchedule(W_DateList, W_TimeList);
			}
		}
		if (B_PhoneList != ""){
			MSG_B = replaceChar(B_PhoneList, ",", ", ") + " <b><font color='#0000FF'>for Blocked-calls</font></b>";
			MSG_B += " which <u><b>will " + B_USE + " used</b></u>";
			if (B_DateList != ""){
				MSG_B += " and <b>the time slot to block these calls is</b> " + getSchedule(B_DateList, B_TimeList);
			}
		}
		var isFirst = true;
		var MSG = "<div align='left'>Your selections will be set as :<br>";
		if (MSG_W != ""){
			isFirst = false;
			MSG += MSG_W;
		}
		if (MSG_B != ""){
			if (!isFirst){
				MSG += "<br><br>";
			}
			isFirst = false;
			MSG += MSG_B;
		}
		if (isFirst){
			MSG += "No setting <b><font color='#0000FF'>for Accepted-calls</font></b> which <u><b>will not be used</b></u><br>No setting <b><font color='#0000FF'>for Blocked-calls</font></b> which <u><b>will not be used</b></u><br>(You can receive every call)";
			//MSG += "No setting <b><font color='#0000FF'>for Received Call </font></b><br>No setting <b><font color='#0000FF'>for Denied Call</font></b><br>(You can receive every call)";
		}
		MSG += "<br><br>Please press 'OK' to confirm your change (press 'Cancel' if you don't wish to change)";

		d.hdConfirmMsg.value = MSG;
		d.action = "/bp3/bin/Dspc/CallScreeningSetting";
		var w = 400;
		//var h = 300;
		var h = 380;
		var l = (screen.width - w) / 2; 
		var t = (screen.height - h ) / 2; 
		window.open("/bp3/bin/Dspc/CallScreeningConfirm?mode=10&lang=E", "CallScreeningConfirm10", "width=" + w + ", height=" + h + ", top=" + t + ", left=" + l);
		return;
	}


//##### White Mode Function #####
	function W_DisplayPhone(PhoneEdit){
		var TableHTML = "";
		var totalMsg = MSG_W_28;
		var total = 0;
		var list = document.form1.W_PhoneList.value;
		if (list != ''){
			var arr = list.split(",");
			total = arr.length;
			for (var i = 0; i < arr.length; i++){
				if (PhoneEdit==arr[i]){
					TableHTML += (i+1) + ". <input type='text' name='W_txtEditPhone' size='11' maxlength='10' onkeyup='onlyNumber(this);' onblur='onlyNumber(this);' value='" + arr[i] + "'>";
					TableHTML += "&nbsp;&nbsp;<a href='javascript:W_EditPhone(\"" + arr[i] + "\")'><img src='${RESOURCE}/eng/images/14_webservice_submit.gif' border='0'></a>";
					TableHTML += "&nbsp;<a href='javascript:W_DisplayPhone(\"\")'><img src='${RESOURCE}/eng/images/14_webservice_cancel.gif' border='0'></a><br></td>";
				}else{
					TableHTML += (i+1) + ". " + genSpace(arr[i], i);
					TableHTML += "&nbsp;&nbsp;<a href='javascript:W_DisplayPhone(\"" + arr[i] + "\")'><img src='${RESOURCE}/eng/images/04_station_credit_edit_s.gif' border='0'></a>";
					TableHTML += "&nbsp;<a href='javascript:W_DeletePhone(\"" + arr[i] + "\")'><img src='${RESOURCE}/eng/images/04_station_credit_delete.gif' border='0'></a><br></td>";
				}
			}
		}
		totalMsg = totalMsg.replace("@total", total);
		var oDiv = document.getElementById("W_Phone");
		oDiv.innerHTML = TableHTML;
		var oDiv2 = document.getElementById("W_Edit_Total_Phone");
		oDiv2.innerHTML = totalMsg;
		W_ControlPhoneButton();
		doTableHeight();
	}

	function W_Submit2(){
		var d = document.form1;
		if (d.CanSave.value != "Y")
			return;
		
		d.mode.value = "W";

		var W_PhoneList = d.W_PhoneList.value;
		var B_PhoneList = d.B_PhoneList.value;

		var W_DateList = "";
		var W_TimeList = "";
		var B_DateList = d.Schedule_B_DateList.value;
		var B_TimeList = d.Schedule_B_TimeList.value;

		var isPhoneListEmpty = true;
		var isSchedule = d.W_Schedule[1].checked;
		var isConflict = false;
		var ProgramMode = d.ProgramMode.value;

		if (d.W_PhoneList.value!=""){
			isPhoneListEmpty = false;
		}

		if (isSchedule){
			isConflict = W_Is_Conflict();
			W_DateList = W_GetScheduleDateList();
			W_TimeList = W_GetScheduleTimeList();

			if (isSelectFullTime(W_DateList, W_TimeList)){
				isSchedule = false;
				W_DateList = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday";
				W_TimeList = "0-48";
			}
		}else{
			W_DateList = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday";
			W_TimeList = "0-48";
		}
		
		var newProgramMode = "";
	
		if ( (ProgramMode=="I") || (ProgramMode=="W") || (ProgramMode=="SW") ){
			if (isPhoneListEmpty){
				W_PhoneList = "";
				W_DateList = "";
				W_TimeList = "";
				B_DateList = "";
				B_TimeList = "";
				newProgramMode = "I";
			}else{
				if (!isSchedule){
					B_DateList = "";
					B_TimeList = "";
					newProgramMode = "W";
				}else{
					B_DateList = "";
					B_TimeList = "";
					newProgramMode = "SW";
				}
			}
		}else if (ProgramMode=="Schedule"){
			if (isPhoneListEmpty){
				W_PhoneList = "";
				W_DateList = "";
				W_TimeList = "";
				newProgramMode = "SB";
			}else{
				if (!isSchedule){
					B_DateList = "";
					B_TimeList = "";
					newProgramMode = "W";
				}else{
					if (isConflict){
						B_DateList = "";
						B_TimeList = "";
					}
					if (B_TimeList==""){
						newProgramMode = "SW";
					}else{
						newProgramMode = "Schedule";
					}
				}
			}
		}else{			//ProgramMode = B or SB
			if (isPhoneListEmpty){
				W_PhoneList = "";
				W_DateList = "";
				W_TimeList = "";
				newProgramMode = ProgramMode;
			}else{
				if (!isSchedule){
					B_DateList = "";
					B_TimeList = "";
					newProgramMode = "W";
				}else{
					if (isConflict){
						B_DateList = "";
						B_TimeList = "";
					}
					if (B_TimeList==""){
						newProgramMode = "SW";
					}else{
						newProgramMode = "Schedule";
					}
				}
			}
		}

		var B_USE = "";
		var W_USE = "";
		if ( (newProgramMode=="B") || (newProgramMode=="SB") || (newProgramMode=="Schedule") ){
			B_USE = "be";
		}else{
			B_USE = "not be";
		}
		if ( (newProgramMode=="W") || (newProgramMode=="SW") || (newProgramMode=="Schedule") ){
			W_USE = "be";
		}else{
			W_USE = "not be";
		}

		/*var MSG = "<div align='left'>Your selections will be set as :<br>" + replaceChar(W_PhoneList, ",", ", ") + " for Received Call which will " + W_USE + " used and the time slot to receive these calls is " + getSchedule(W_DateList, W_TimeList) + "<br><br>";
		MSG += "" + replaceChar(B_PhoneList, ",", ", ") + " for Denied Call which will " + B_USE + " used and the time slot to deny these calls is " + getSchedule(B_DateList, B_TimeList) + "";
		MSG += "<br><br>Please press 'Accept' to confirm your change (press 'Cancel' if you don't wish to change)";*/

		var MSG_B = "";
		var MSG_W = "";
		if (W_PhoneList != ""){
			MSG_W = replaceChar(W_PhoneList, ",", ", ") + " <b><font color='#0000FF'>for Accepted-calls</font></b>";
			MSG_W += " which <u><b>will " + W_USE + " used</b></u>";
			if (W_DateList != ""){
				MSG_W += " and <b>the time slot to accept these calls is</b> " + getSchedule(W_DateList, W_TimeList);
			}
		}
		if (B_PhoneList != ""){
			MSG_B = replaceChar(B_PhoneList, ",", ", ") + " <b><font color='#0000FF'>for Blocked-calls</font></b>";
			MSG_B += " which <u><b>will " + B_USE + " used</b></u>";
			if (B_DateList != ""){
				MSG_B += " and <b>the time slot to block these calls is</b> " + getSchedule(B_DateList, B_TimeList);
			}
		}
		var isFirst = true;
		var MSG = "<div align='left'>Your selections will be set as :<br>";
		if (MSG_W != ""){
			isFirst = false;
			MSG += MSG_W;
		}
		if (MSG_B != ""){
			if (!isFirst){
				MSG += "<br><br>";
			}
			isFirst = false;
			MSG += MSG_B;
		}
		if (isFirst){
			MSG += "No setting <b><font color='#0000FF'>for Accepted-calls</font></b> which <u><b>will not be used</b></u><br>No setting <b><font color='#0000FF'>for Blocked-calls</font></b> which <u><b>will not be used</b></u><br>(You can receive every call)";
			//MSG += "No setting <b><font color='#0000FF'>for Received Call </font></b><br>No setting <b><font color='#0000FF'>for Denied Call </font></b><br>(You can receive every call)";
		}
		MSG += "<br><br>Please press 'OK' to confirm your change (press 'Cancel' if you don't wish to change)";

		d.hdConfirmMsg.value = MSG;
		d.action = "/bp3/bin/Dspc/CallScreeningSetting";
		var w = 400;
		//var h = 300;
		var h = 380;
		var l = (screen.width - w) / 2; 
		var t = (screen.height - h ) / 2; 
		window.open("/bp3/bin/Dspc/CallScreeningConfirm?mode=10&lang=E", "CallScreeningConfirm10", "width=" + w + ", height=" + h + ", top=" + t + ", left=" + l);
		return;
	}
</script>
</head>
<body>
<div id="header">
    <%@include file="../head.jsp" %>
</div>

<div id="container">
	<div id="pathway">
	<A href="/bp3/bin/DpromptIndex" class="link2">Web Service</A> &gt; 
	<a href="/bp3/bin/Dspc/DpromptWelcome"  class="link2">Profile and Service</a> &gt;  
	Call screening service
	</div>
	<div id="main">
    	<%@ include file="../menu.jsp" %>
    	<div id="content">
        	<div class="content-middle">
                
                <!--เนื้อหาเริ่มที่นี่-->
                <h3><img src="${RESOURCE}/eng/images/14_webservice_head01.gif"></h3>
               	<table width="100%" cellpadding="2" cellspacing="2" height="500">
                  	<tr>
                    	<td valign="top">
						
						
						
						<div align="center">
						
						
						
						<form name="form1" method="post" action="/bp3/bin/Dspc/CallScreeningSetting">
		  <input type="hidden" name="hdConfirmMsg" value="">
		  <input type="hidden" name="hdConfirmMsg2" value="">
		  <input type="hidden" name="CanSave" value="">
		  <input type="hidden" name="mode" value="B">
		  <input type="hidden" name="CSMode" value="<!--SVLT.VAR:CSMode-->">
		  <input type="hidden" name="MaxPhone" value="<!--SVLT.VAR:MaxPhone-->">
		  <input type="hidden" name="ProgramMode" value="<!--SVLT.VAR:ProgramMode-->">
		  <input type="text" name="B_PhoneList" value="<!--SVLT.VAR:B_PhoneList-->" style="display : none;">
		  <input type="text" name="W_PhoneList" value="<!--SVLT.VAR:W_PhoneList-->" style="display : none;">
		  <input type="hidden" name="Schedule_B_TimeList" value="<!--SVLT.VAR:Schedule_B_TimeList-->">
		  <input type="hidden" name="Schedule_W_TimeList" value="<!--SVLT.VAR:Schedule_W_TimeList-->">
		  <input type="hidden" name="Schedule_B_DateList" value="<!--SVLT.VAR:Schedule_B_DateList-->">
		  <input type="hidden" name="Schedule_W_DateList" value="<!--SVLT.VAR:Schedule_W_DateList-->">
		  <input type="hidden" name="EditMode" value="N">
		  <input type="hidden" name="CurrentPhone" value="<!--SVLT.VAR:CurrentPhone-->">
		   <input type="hidden" name="lang" value="E">


						<table width="650" border="0" cellspacing="0" cellpadding="0">
						<!--SVLT.VAR:CONF_TOP-->
						  <tr> 
							<td></td>
						  </tr>
						  <tr> 
							<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr> 
								  <td width="20">&nbsp;</td>
								  <td valign="top" class="textnormal"><br>
									<strong>Setting results of call screening service </strong><br />
									You've configured call screening service 
									to suit your needs as follows: 
									<p>&nbsp;</p>
									<table width="100%" border="1" cellspacing="2" cellpadding="0">
									  <tr> 
										<td width="50%" height="25" align="center" class="textnormalwhite_bold" id="B_bgTitle">Blocked-calls service</td>
										<td width="50%" align="center"  class="textnormalwhite_bold" id="W_bgTitle">Accepted-calls service</td>
									  </tr>
									  <tr> 
										<td valign="top">
										<table width="100%" border="0" cellspacing="0" cellpadding="3" id="B_Display" style="display:">
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9">&nbsp;</td>
											  <td colspan="2"><span class="textnormal_blue"><strong> 
											Basic function setting:</strong></span></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9">&nbsp;</td>
			<td colspan="2" class="textnormal">
			<!--SVLT.LOOP:B_Display_Total_Phone-->
			You have entered <!--SVLT.VAR:Value--> number(s) for blocked-calls service 
			<!--SVLT.END:B_Display_Total_Phone-->
			</td>
			<td width="1">&nbsp;</td>
		  </tr>
		  <tr>
											  <td width="9" align="right" valign="top"><img src="${RESOURCE}/eng/images/bullet1.gif" width="9" height="12" /></td>
			<td colspan="2" valign="top" class="textnormal"><strong>Selected phone numbers</strong></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9">&nbsp;</td>
			<td colspan="2" valign="top">
				<table id="B_Display_Phone" style="height:50;">
					<tr><td valign="top" class="textnormal"><!--SVLT.VAR:B_Display_Phone_List-->
				</table>             
			</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9">&nbsp;</td>
			<td colspan="2">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
											  <td align="right" valign="top"><img src="${RESOURCE}/eng/images/bullet1.gif" width="9" height="12" /></td>
			<td colspan="2" valign="top" class="textnormal"><strong>Response mode for unreceived calls</strong></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" class="textnormal">
			<!--SVLT.LOOP:B_Display_Busytone-->
			  You have selected the Busy tone.<br>
			<!--SVLT.END:B_Display_Busytone-->
			<!--SVLT.LOOP:B_Display_Voicemail-->
			  You have selected the Voice mail system.<br>
			<!--SVLT.END:B_Display_Voicemail-->
			<!--SVLT.LOOP:B_Display_Reject-->
			  You have selected the Pre-recorded voice mail system.<br>
			<!--SVLT.END:B_Display_Reject-->
			
			 <!--SVLT.LOOP:B_Display_BSMSTemplateID_ON-->
			  You have selected SMS notification for any of the 20 unreceived call numbers. <br><br>
			 <!--SVLT.END:B_Display_BSMSTemplateID_ON-->
			 <!--SVLT.LOOP:B_Display_BSMSTemplateID_OFF-->
			 You didn't choose to receive SMS notification for all unreceived calls.<br><br>
			 <!--SVLT.END:B_Display_BSMSTemplateID_OFF-->
			</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
											  <td align="right" valign="top"><img src="${RESOURCE}/eng/images/bullet1.gif" width="9" height="12" /></td>
			<td colspan="2" valign="top" class="textnormal"><strong>Advanced Function setting: Choose to block calls by specifying day/time period</strong></a></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" align="left" class="textnormal"><div id="B_Display_Schedule"></div></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" align="center"></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
											  <td colspan="2" align="center"> <a href="#"><img src="${RESOURCE}/eng/images/04_station_credit_edit.gif" border="0" onClick="doEdit('B')"></a></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" align="center">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		</table>
		
		
		<table width="100%" border="0" cellspacing="0" cellpadding="3" id="B_Edit" style="display:">
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9">&nbsp;</td>
											  <td colspan="2"><span class="textnormal_blue"><strong> 
											Basic function setting:</strong></span></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9">&nbsp;</td>
			<td colspan="2" class="textnormal"><div id="B_Edit_Total_Phone"></div></td>
			<td width="1">&nbsp;</td>
		  </tr>
		  <tr>
											  <td width="9" align="right" valign="top"><img src="${RESOURCE}/eng/images/bullet1.gif" width="9" height="12" /></td>
			<td colspan="2" valign="top" class="textnormal"><strong>Selected phone numbers</strong></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9">&nbsp;</td>
			<td colspan="2"  valign="top">
				<table id="B_Table_Phone" style="height:50;">
				<tr><td  class="textnormal">
				Please enter number
				<input type="text" name="B_txtAddPhone" class="textnormal" style="width:80px" maxlength="10" onkeyup='onlyNumber(this);' onblur='onlyNumber(this);'>
													  <a href="javascript:B_AddPhone()"><img src="${RESOURCE}/eng/images/14_webservice_add.gif" width="58" height="23" border="0" id="B_btnAdd" style="display:"></a> 
													  <br><span class="textnormal_s2">(Enter 10-digit mobile number or 9-digit fixed line number with 0 prefix)</span>
												  <tr><td valign="top"><br><div class="textnormal" ID="B_Phone"></div><br>
				<tr>
													<td valign="top"><a href="javascript:B_DeleteAllPhone()"><img src="${RESOURCE}/eng/images/14_webservice_delete_all.gif" border="0" id="B_btnDeleteAll" style="display:"></a> 
												  </table>
			</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9">&nbsp;</td>
			<td colspan="2">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
											  <td align="right" valign="top"><img src="${RESOURCE}/eng/images/bullet1.gif" width="9" height="12" /></td>
			<td colspan="2" valign="top" class="textnormal"><strong>Choose a response mode for unreceived calls</strong></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" class="textnormal">
			<input name="B_Destination" type="radio" class="radio" onClick="B_ClearPromptID()" value="Busytone" <!--SVLT.VAR:B_Destination_BT-->> Busy tone <br />
			<input name="B_Destination" type="radio" class="radio" onClick="B_ClearPromptID()" value="Voicemail" <!--SVLT.VAR:B_Destination_VM-->> Voice mail system<br>
			<input name="B_Destination" type="radio" class="radio" value="Reject" <!--SVLT.VAR:B_Destination_FW-->> Pre-recorded voice message system: You can select a voice message appropriate for a certain time period as follows:<br>
												  <br>
												  <strong>Select a message</strong> 
												  <select name="B_PromptID" class="textnormal" onChange="B_SelectDestinationReject()">
											  <option value="">Please select a message</option>
											  <!--SVLT.LOOP:B_PromptID-->
											  <option value="<!--SVLT.VAR:Value-->" <!--SVLT.VAR:Selected-->><!--SVLT.VAR:Desc--></option>
											  <!--SVLT.END:B_PromptID-->
											</select>
											 <a href="javascript:B_Listen()"><img src="${RESOURCE}/eng/images/listen.gif" border="0" /></a>
											<select name="B_PromptID_LongDesc" style="display : none;">
											<option value=""></option>
												<!--SVLT.LOOP:B_PromptID_LongDesc-->
												<option value="<!--SVLT.VAR:Value-->">&nbsp;</option>
												<!--SVLT.END:B_PromptID_LongDesc-->
												</select>
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div ID="B_PromptID_LongDesc_Show"></div>
												  <br>
											  </td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2"></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" class="textnormal"><input name="B_BSMSTemplateID" type="checkbox" class="radio" value="<!--SVLT.VAR:B_BSMSTemplateID_Value-->" <!--SVLT.VAR:B_BSMSTemplateID-->> Choose to receive SMS notification of unreceived call. SMS fee is 1 baht per unreceived call. Special offer! Free SMS until 31 December 2010.
</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
											  <td align="right" valign="top"><img src="${RESOURCE}/eng/images/bullet1.gif" width="9" height="12" /></td>
			<td colspan="2" valign="top" class="textnormal"><a href="#1" class="textnormal_blue" onClick="B_AdvanceFunction()"><strong>Advanced Function setting : Choose day/time period when calls are blocked</strong></a></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" align="left">
			<table width="100%" border="0" cellpadding="0" cellspacing="0" id="B_AdvFunc" style="display:">
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal"><input name="B_Schedule" type="radio" class="radio" value="OFF" onClick="B_ClearSchedule()" <!--SVLT.VAR:B_Schedule_OFF-->> Choose service 24 hours everyday  </td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal">
				  <input name="B_Schedule" type="radio" class="radio" value="ON" onClick="B_SelectDefaultSchedule()" <!--SVLT.VAR:B_Schedule_ON-->> Choose service during specified day/time period </td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" align="center">&nbsp;</td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal"><strong>Choose day period </strong></td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal"><input name="B_Days" type="radio" class="radio" value="MF" onClick="B_ClearDay()" <!--SVLT.VAR:B_Days_MF-->> Monday-Friday </td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal">
				  <input name="B_Days" type="radio" class="radio"  value="SS" onClick="B_ClearDay()"  <!--SVLT.VAR:B_Days_SS-->> Saturday-Sunday</td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal">
				  <input name="B_Days" type="radio" class="radio" value="SP" onClick="B_SelectSchedule()" <!--SVLT.VAR:B_Days_SP-->> Choose a specific day</td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal"><div align="left">
														<table>
														  <tr> 
															<td class="textnormal"><input name="B_Day_0" type="checkbox" class="radio" value="Monday" onClick="B_SelectSpecificDate()" 
															  <!--SVLT.VAR:B_Day_Monday-->
															  > Monday 
															<td class="textnormal"><input name="B_Day_1" type="checkbox" class="radio" value="Tuesday" onClick="B_SelectSpecificDate()" 
															  <!--SVLT.VAR:B_Day_Tuesday-->
															  > Tuesday 
														  <tr> 
															<td class="textnormal"><input name="B_Day_2" type="checkbox" class="radio" value="Wednesday" onClick="B_SelectSpecificDate()" 
															  <!--SVLT.VAR:B_Day_Wednesday-->
															  > Wednesday 
															<td class="textnormal"><input name="B_Day_3" type="checkbox" class="radio" value="Thursday" onClick="B_SelectSpecificDate()" 
															  <!--SVLT.VAR:B_Day_Thursday-->
															  > Thursday 
														  <tr> 
															<td class="textnormal"><input name="B_Day_4" type="checkbox" class="radio" value="Friday" onClick="B_SelectSpecificDate()" 
															  <!--SVLT.VAR:B_Day_Friday-->
															  > Friday 
															<td class="textnormal"><input name="B_Day_5" type="checkbox" class="radio" value="Saturday" onClick="B_SelectSpecificDate()" 
															  <!--SVLT.VAR:B_Day_Saturday-->
															  > Saturday 
														  <tr> 
															<td class="textnormal"><input name="B_Day_6" type="checkbox" class="radio" value="Sunday" onClick="B_SelectSpecificDate()" 
															  <!--SVLT.VAR:B_Day_Sunday-->
															  > Sunday 
															<td> 
														</table>
				   </div></td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" align="center">&nbsp;</td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal"><strong>Choose time period</strong></td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal">
				  <input name="B_Time" type="radio" class="radio" value="AT" onClick="B_ClearTimeList()" <!--SVLT.VAR:B_Time_AT-->> Choose 24 hours (all day)</td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal">
				  <input name="B_Time" type="radio" class="radio" value="SP" onClick="B_SelectSchedule()" <!--SVLT.VAR:B_Time_SP-->> Choose a time period, up to two periods</td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td width="18" class="textnormal"></td>
				<td width="303"class="textnormal">Period 1
						<select name="B_TimeList_1" class="textnormal" onChange="B_CheckConfigTime(this)">
							<!--SVLT.LOOP:B_TimeList_1-->
							<option value="<!--SVLT.VAR:No-->" <!--SVLT.VAR:Selected-->><!--SVLT.VAR:Desc--></option>
							<!--SVLT.END:B_TimeList_1-->
						</select>
						-
						<select name="B_TimeList_2" class="textnormal" onChange="B_CheckConfigTime(this)">
						  <!--SVLT.LOOP:B_TimeList_2-->
							<option value="<!--SVLT.VAR:No-->" <!--SVLT.VAR:Selected-->><!--SVLT.VAR:Desc--></option>
							<!--SVLT.END:B_TimeList_2-->
						</select>
													  <a href="javascript:B_ClearTime12()"><img src="${RESOURCE}/eng/images/04_station_credit_delete.gif" border="0"> </a>
													</td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td  class="textnormal">&nbsp;</td>
				<td class="textnormal">Period 2 
														<select name="B_TimeList_3"  class="textnormal" onChange="B_CheckConfigTime(this)">
														  <!--SVLT.LOOP:B_TimeList_3-->
														  <option value="<!--SVLT.VAR:No-->" <!--SVLT.VAR:Selected-->><!--SVLT.VAR:Desc--></option>
														  <!--SVLT.END:B_TimeList_3-->
														</select>
														- 
														<select name="B_TimeList_4" class="textnormal" onChange="B_CheckConfigTime(this)">
						  <!--SVLT.LOOP:B_TimeList_4-->
							<option value="<!--SVLT.VAR:No-->" <!--SVLT.VAR:Selected-->><!--SVLT.VAR:Desc--></option>
							<!--SVLT.END:B_TimeList_4-->
						</select>
														<a href="javascript:B_ClearTime34()"><img src="${RESOURCE}/eng/images/04_station_credit_delete.gif" border="0"></a></td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal"><br />You can receive calls as usual on other days and during other time periods which are not specified.<br/></td>
				<td>&nbsp;</td>
			  </tr>
			  </table>
			  </td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" align="center"><div align="left"></div></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
											  <td colspan="2" align="center"> 
												<a href="javascript:B_Submit()"><img src="${RESOURCE}/eng/images/04_station_credit_record_s.gif" border="0"></a> &nbsp;
												<a href="javascript:doEdit('N')"><img src="${RESOURCE}/eng/images/04_station_credit_cancel.gif" border="0"></a></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" align="center">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		</table>
		
										</td>
										<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="3" id="W_Display" style="display:">
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9">&nbsp;</td>
											  <td colspan="2"><span class="textnormal_blue"><strong> 
											Basic function setting:</strong></span></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9">&nbsp;</td>
			<td colspan="2" class="textnormal">
			<!--SVLT.LOOP:W_Display_Total_Phone-->
			You have entered <!--SVLT.VAR:Value--> number(s) for accepted-calls service
			<!--SVLT.END:W_Display_Total_Phone-->
			</td>
			<td width="1">&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9" align="right" valign="top"><img src="${RESOURCE}/eng/images/bullet1.gif" width="9" height="12" /></td>
			<td colspan="2" valign="top" class="textnormal"><strong>Selected phone numbers </strong></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9">&nbsp;</td>
			<td colspan="2" valign="top">
				<table id="W_Display_Phone" style="height:50;">
					<tr><td valign="top" class="textnormal"><!--SVLT.VAR:W_Display_Phone_List-->
				</table>           
			</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9">&nbsp;</td>
			<td colspan="2">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td align="right" valign="top"><img src="${RESOURCE}/eng/images/bullet1.gif" width="9" height="12" /></td>
			<td colspan="2" valign="top" class="textnormal"><strong>Response mode for unreceived calls</strong></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" class="textnormal">
			<!--SVLT.LOOP:W_Display_Busytone-->
			  You have selected the Busy tone.<br>
			<!--SVLT.END:W_Display_Busytone-->
			<!--SVLT.LOOP:W_Display_Voicemail-->
			  You have selected the Voice mail system.<br>
			<!--SVLT.END:W_Display_Voicemail-->
			<!--SVLT.LOOP:W_Display_Reject-->
			  You have selected the Pre-recorded voice mail system.<br>
			<!--SVLT.END:W_Display_Reject-->
			  
			  <!--SVLT.LOOP:W_Display_BSMSTemplateID_ON-->
			  You have selected SMS notification for all unreceived call numbers. <br><br>
			 <!--SVLT.END:W_Display_BSMSTemplateID_ON-->
			 <!--SVLT.LOOP:W_Display_BSMSTemplateID_OFF-->
			  You didn't choose to receive SMS notification for all unreceived calls.<br><br>
			 <!--SVLT.END:W_Display_BSMSTemplateID_OFF-->
			  </td>
			  <td>&nbsp;</td>
		  </tr>
		  <tr>
			<td align="right" valign="top"><img src="${RESOURCE}/eng/images/bullet1.gif" width="9" height="12" /></td>
			<td colspan="2" valign="top" class="textnormal"><strong>Advance Function setting: Choose to accept calls by specifying day/time period</strong></a></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" class="textnormal"><div id="W_Display_Schedule"></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" align="center">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" align="center">
			<a href="#"><img src="${RESOURCE}/eng/images/04_station_credit_edit.gif" border="0" onClick="doEdit('W')"></a>
			  </td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" align="center">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		</table>
		
		<table width="100%" border="0" cellspacing="0" cellpadding="3" id="W_Edit" style="display:">
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9">&nbsp;</td>
											  <td colspan="2"><span class="textnormal_blue"><strong> 
											Basic function setting:</strong></span></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9">&nbsp;</td>
			<td colspan="2"><div id="W_Edit_Total_Phone"></div></td>
			<td width="1">&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9" align="right" valign="top"><img src="${RESOURCE}/eng/images/bullet1.gif" width="9" height="12" /></td>
			<td colspan="2" valign="top" class="textnormal"><strong>Selected phone numbers</strong></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9">&nbsp;</td>
			<td colspan="2" valign="top">
				<table id="W_Table_Phone" style="height:50;">
					<tr><td class="textnormal">
					Please enter number
					 <input type="text" name="W_txtAddPhone" class="textnormal" style="width:80px" maxlength="10" onkeyup='onlyNumber(this);' onblur='onlyNumber(this);'>
					 <a href="javascript:W_AddPhone()"><img src="${RESOURCE}/eng/images/14_webservice_add.gif" border="0" id="W_btnAdd" style="display:"></a> 
					 <br><span class="textnormal_s2">(Enter 10-digit mobile number or 9-digit fixed line number with 0 prefix)</span>
					<tr><td valign="top"><br><div  class="textnormal" ID="W_Phone"></div><br>
					<tr><td valign="top">
					<a href="javascript:W_DeleteAllPhone()"><img src="${RESOURCE}/eng/images/14_webservice_delete_all.gif" border="0" id="W_btnDeleteAll" style="display:"></a>
				</table>   
			</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td width="9">&nbsp;</td>
			<td colspan="2">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td align="right" valign="top"><img src="${RESOURCE}/eng/images/bullet1.gif" width="9" height="12" /></td>
			<td colspan="2" valign="top" class="textnormal"><strong>Choose a response mode for unreceived calls</strong></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" class="textnormal">
			<input name="W_Destination" type="radio" class="radio" onClick="W_ClearPromptID()" value="Busytone" <!--SVLT.VAR:W_Destination_BT-->> Busy tone <br />
			<input name="W_Destination" type="radio" class="radio" onClick="W_ClearPromptID()" value="Voicemail" <!--SVLT.VAR:W_Destination_VM-->> Voice mail system<br>
			<input name="W_Destination" type="radio" class="radio" value="Reject" <!--SVLT.VAR:W_Destination_FW-->> Pre-recorded voice message system: You can select a voice message appropriate for a certain time period as follows:<br><br>
			  <strong>Select a message </strong>
			  <select name="W_PromptID" class="textnormal" onChange="W_SelectDestinationReject()">
			<option value="">Please select a message</option>
			<!--SVLT.LOOP:W_PromptID-->
			<option value="<!--SVLT.VAR:Value-->" <!--SVLT.VAR:Selected-->><!--SVLT.VAR:Desc--></option>
			<!--SVLT.END:W_PromptID-->
			</select>
			<a href="javascript:W_Listen()"><img src="${RESOURCE}/eng/images/listen.gif" border="0"></a>
			<select name="W_PromptID_LongDesc" style="display : none;">
			<option value=""></option>
			<!--SVLT.LOOP:W_PromptID_LongDesc-->
			<option value="<!--SVLT.VAR:Value-->">&nbsp;</option>
			<!--SVLT.END:W_PromptID_LongDesc-->
			</select>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div ID="W_PromptID_LongDesc_Show"></div>
			  <br></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr></tr>
		  <tr>
			<td align="right">&nbsp;</td>
			<td colspan="2"></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td align="right">&nbsp;</td>
			<td colspan="2" class="textnormal"><input name="W_BSMSTemplateID" type="checkbox" class="radio" value="<!--SVLT.VAR:W_BSMSTemplateID_Value-->" <!--SVLT.VAR:W_BSMSTemplateID-->> Choose to receive SMS notification of unreceived call. SMS fee is 1 baht per unreceived call. Special offer! Free SMS until 31 December 2010.
</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td align="right">&nbsp;</td>
			<td colspan="2">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td align="right" valign="top"><img src="${RESOURCE}/eng/images/bullet1.gif" width="9" height="12" /></td>
			<td colspan="2" valign="top" class="textnormal"><a href="#1" class="textnormal_blue" onClick="W_AdvanceFunction()"><strong>Advanced Function setting: Choose to accept calls during specified day/time period</strong></a></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" align="left">
			<table width="100%" border="0" cellpadding="0" cellspacing="0" id="W_AdvFunc" style="display:">
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" valign="top" class="textnormal"><input name="W_Schedule" type="radio" class="radio" value="OFF" onClick="W_ClearSchedule()" <!--SVLT.VAR:W_Schedule_OFF-->> Choose service 24 hours everyday </td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal">
					<input name="W_Schedule" type="radio" class="radio" value="ON" onClick="W_SelectDefaultSchedule()" <!--SVLT.VAR:W_Schedule_ON-->> Choose service during specified day/time period</td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" align="center">&nbsp;</td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal"><strong>Choose day period </strong></td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal">
				  <input name="W_Days" type="radio" class="radio" value="MF" onClick="W_ClearDay()" <!--SVLT.VAR:W_Days_MF-->> Monday-Friday</td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal">
				  <input name="W_Days" type="radio" class="radio"  value="SS" onClick="W_ClearDay()"  <!--SVLT.VAR:W_Days_SS-->> Saturday-Sunday</td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal">
				  <input name="W_Days" type="radio" class="radio" value="SP" onClick="W_SelectSchedule()" <!--SVLT.VAR:W_Days_SP-->> Choose a specific day</td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal">
														<table>
														  <tr> 
															<td class="textnormal"><input name="W_Day_0" type="checkbox" class="radio" value="Monday" onClick="W_SelectSpecificDate()" 
															  <!--SVLT.VAR:W_Day_Monday-->
															  > Monday 
															<td class="textnormal"><input name="W_Day_1" type="checkbox" class="radio" value="Tuesday" onClick="W_SelectSpecificDate()" 
															  <!--SVLT.VAR:W_Day_Tuesday-->
															  > Tuesday 
														  <tr> 
															<td class="textnormal"><input name="W_Day_2" type="checkbox" class="radio" value="Wednesday" onClick="W_SelectSpecificDate()" 
															  <!--SVLT.VAR:W_Day_Wednesday-->
															  > Wednesday 
															<td class="textnormal"><input name="W_Day_3" type="checkbox" class="radio" value="Thursday" onClick="W_SelectSpecificDate()" 
															  <!--SVLT.VAR:W_Day_Thursday-->
															  > Thursday 
														  <tr> 
															<td class="textnormal"><input name="W_Day_4" type="checkbox" class="radio" value="Friday" onClick="W_SelectSpecificDate()" 
															  <!--SVLT.VAR:W_Day_Friday-->
															  > Friday 
															<td class="textnormal"><input name="W_Day_5" type="checkbox" class="radio" value="Saturday" onClick="W_SelectSpecificDate()" 
															  <!--SVLT.VAR:W_Day_Saturday-->
															  > Saturday 
														  <tr> 
															<td class="textnormal"><input name="W_Day_6" type="checkbox" class="radio" value="Sunday" onClick="W_SelectSpecificDate()" 
															  <!--SVLT.VAR:W_Day_Sunday-->
															  > Sunday 
															<td> 
														</table>
				  </td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" align="center">&nbsp;</td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal"><strong>Choose time period </strong></td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal">
				  <input name="W_Time" type="radio" class="radio" value="AT" onClick="W_ClearTimeList()" <!--SVLT.VAR:W_Time_AT-->> Choose 24 hours (all day)</td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal">
				  <input name="W_Time" type="radio" class="radio" value="SP" onClick="W_SelectSchedule()" <!--SVLT.VAR:W_Time_SP-->> Choose a time period, up to two periods</td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td width="18" class="textnormal">&nbsp;</td>
				<td width="303" class="textnormal">Period 1
					  <select name="W_TimeList_1" class="textnormal" onChange="W_CheckConfigTime(this)">
							<!--SVLT.LOOP:W_TimeList_1-->
							<option value="<!--SVLT.VAR:No-->" <!--SVLT.VAR:Selected-->><!--SVLT.VAR:Desc--></option>
							<!--SVLT.END:W_TimeList_1-->
						</select>
						-
						<select name="W_TimeList_2" class="textnormal" onChange="W_CheckConfigTime(this)">
						  <!--SVLT.LOOP:W_TimeList_2-->
							<option value="<!--SVLT.VAR:No-->" <!--SVLT.VAR:Selected-->><!--SVLT.VAR:Desc--></option>
							<!--SVLT.END:W_TimeList_2-->
						</select>
													  <a href="javascript:W_ClearTime12()"><img src="${RESOURCE}/eng/images/04_station_credit_delete.gif" border="0" > </a>
													</td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td class="textnormal">&nbsp;</td>
				<td class="textnormal">Period 2
					   <select name="W_TimeList_3" class="textnormal" onChange="W_CheckConfigTime(this)">
							<!--SVLT.LOOP:W_TimeList_3-->
							<option value="<!--SVLT.VAR:No-->" <!--SVLT.VAR:Selected-->><!--SVLT.VAR:Desc--></option>
							<!--SVLT.END:W_TimeList_3-->
						</select>
						-
						<select name="W_TimeList_4" class="textnormal" onChange="W_CheckConfigTime(this)">
						  <!--SVLT.LOOP:W_TimeList_4-->
							<option value="<!--SVLT.VAR:No-->" <!--SVLT.VAR:Selected-->><!--SVLT.VAR:Desc--></option>
							<!--SVLT.END:W_TimeList_4-->
						</select>
													 <a href="javascript:W_ClearTime34()"> <img src="${RESOURCE}/eng/images/04_station_credit_delete.gif" border="0"> </a>
													</td>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
				<td colspan="2" class="textnormal"> <br />You can receive calls as usual during a day/time period other than what is specified.<br/></td>
				<td>&nbsp;</td>
			  </tr>
			  </table>
			  </td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" align="center">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" align="center">
			<a href="javascript:W_Submit()"><img src="${RESOURCE}/eng/images/04_station_credit_record_s.gif" border="0"></a> &nbsp;
			<a href="javascript:doEdit('N')"><img src="${RESOURCE}/eng/images/04_station_credit_cancel.gif" border="0"></a></td>
			<td>&nbsp;</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td colspan="2" align="center">&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		</table>
		
		 </td>
									  </tr>
									</table>
									<p> 
									  <label></label>
									  <a href="/bp3/bin/Dspc/CallScreening?page=Cancel"><img src="${RESOURCE}/eng/images/04_station_credit_quit.gif" width="121" height="26" border="0"></a></p>
									<table width="100%" border="0">
									  <tr>
										<td width="70%" align="left"><span style="width:220px; color:#0AA1E6; font-size:120%; font-weight:bold;"><a href="#1" class="textnormal_blue" onClick="if(document.getElementById('Detail1').style.display=='none'){document.getElementById('Detail1').style.display='';}else{document.getElementById('Detail1').style.display='none';} document.getElementById('Detail2').style.display='none';"><strong>Details of call screening service</strong></a></span>
									  </td>
										<td width="30%" align="right"><span style="width:150px; color:#0AA1E6; font-size:120%; font-weight:bold; margin-left:265px;"><a href="#1" class="textnormal_blue" onClick="if(document.getElementById('Detail2').style.display=='none'){document.getElementById('Detail2').style.display='';}else{document.getElementById('Detail2').style.display='none';} document.getElementById('Detail1').style.display='none';"><strong>Please read:</strong></a></span>
										</td>
									  </tr>
									</table>
									<br>
									<div id="Detail1" style="display:none">
									This new service allows you to easily manage incoming calls. You can choose to answer only calls from important persons or choose to block calls up to 20 numbers. After registering for call screening service, the system will automatically configure a busy tone response for unreceived calls. However, you can also choose the voice mail system or the pre-recorded voice message system as a response mode. 
								  <ul>
									<li><span class="textnormal_blue"><strong>Blocked-calls service:  </strong></span>This service helps you choose to block calls when it's sometimes inconvenient or not possible to answer a call. You can choose to block calls up to 20 numbers and specify a time period when you don't want to receive any call.<br />
									  <br />
									  For instance, you chose blocked-calls service while you're tied up in a meeting. Depending on your setting of a response mode, when a friend called you, he would hear a busy tone automatically, or hear your voice mail or a pre-recorded voice message depending on your response mode setting.<br />
									  <br />
									</li>
									<li><span class="textnormal_blue"><strong>Accepted-calls service : </strong></span>This service helps you choose to accept a call only from some numbers during your private moments. You can choose to accept calls up to 20 numbers and specify a time period when you want to receive some calls.<br />
									  <br />
									  For instance, you chose accepted-calls service to serve only family members while traveling abroad. Other numbers aside from these would not be able to reach you and they would hear a busy tone automatically, or hear your voice mail or a pre-recorded voice message depending on your response mode setting. <br />
									  <br />
									</li>
									<li>Moreover, you can choose to receive SMS notification of unreceived calls. The service fee is 1 baht per each text messaging. Special offer! Free SMS until 31 December 2010.</li>
								  </ul>
									<img src="${RESOURCE}/eng/images/14_webservice_subtitle29.gif"><br>
									&nbsp;Beside online e-service channel, you can also sign up and have a service mode configured through:
								   <ul> 
									  <li>Interactive voice response (IVR) *7143 (3 baht per call, exclusive of VAT)</li>
									  <br>Note: Day/time period scheduling cannot be configured through this channel.
								  </ul>
								  &nbsp;You can set a service mode of the last call number for blocked call configured through:
								   <ul> 
									  <li>USSD service, simply press *143# (free of charge) and configure response mode and day/time period scheduling for blocked call through this channel (e-service)</li>
								  </ul>
								  Service fee: 30 baht/month (exclusive of VAT and SMS notification for unreceived numbers)
									</div>
									<div id="Detail2" style="display:none"><strong>Please read:
									  </strong> 
									  <table width="100%">
										<tr> 
										  <td width="4%" align="center" valign="top" class="textnormal">1.</td>
										  <td width="96%" class="textnormal">call screening service comprises blocked-calls and accepted-calls services which are value-added services offered to prepaid subscribers in dtac 1800 system (not including corporate organization). Eligible subscribers can apply for this service from now until 31 December 2010.</td>
										</tr>
										<tr> 
										  <td align="center" valign="top" class="textnormal">2.</td>
										  <td class="textnormal">To subscribe to blocked-calls or accepted-calls services, the subscriber shall enroll at least one phone number. A maximum of 20 numbers can be enrolled.</td>
										</tr>
										<tr> 
										  <td align="center" valign="top" class="textnormal">3.</td>
										  <td class="textnormal">Registration of call screening value-added service 
											<table width="100%">
											  <tr> 
												<td width="5%" valign="top" class="textnormal">3.1</td>
												<td width="95%" class="textnormal">To be eligible, the subscriber shall retain a credit balance over or equal to 32.10 baht  on the registration date.</td>
											  </tr>
											  <tr> 
												<td valign="top" class="textnormal">3.2</td>
												<td class="textnormal">Regarding deduction of monthly fee in the following month, the subscriber shall  receive SMS alert on deduction of monthly fee two days before a settlement date. Below is the schedule of settlement dates:
												  <table width="100%">
													<tr> 
													  <td width="7%" valign="top" class="textnormal">3.2.1</td>
													  <td width="93%" class="textnormal">For registration during 1<sup>st</sup> - 27<sup>th</sup> of the initial month, the system will debit monthly fee on the system registration date in the following month.</td>
													</tr>
													<tr> 
													  <td valign="top" class="textnormal">3.2.2 
													  </td>
													  <td class="textnormal">For registration on 28<sup>th</sup>, 29<sup>th</sup>, 30<sup>th</sup> or 31<sup>st</sup> of the initial month, the system will debit monthly fee on every 28<sup>th</sup> of the following month.</td>
													</tr>
												  </table></td>
											  </tr>
											  <tr> 
												<td valign="top" class="textnormal">3.3</td>
												<td class="textnormal">On the settlement date, if the subscriber has insufficient credit balance for payment of a monthly service fee, the system will send a text message to inform the subscriber that overdue service fee will be debited immediately after a refill is made within 30 days. If a period of 30 days has lapsed and an overdue amount still remained outstanding, the system will automatically terminate call screening service.</td>
											  </tr>
											  <tr> 
												<td valign="top" class="textnormal">3.4</td>
												<td class="textnormal">The subscriber of call screening service can terminate call screening service at any time.</td>
											  </tr>
											  <tr> 
												<td valign="top" class="textnormal">3.5</td>
												<td class="textnormal">The subscriber of call screening service will automatically receive free voice mail service.</td>
											  </tr>
											</table></td>
										</tr>
										<tr> 
										  <td align="center" valign="top" class="textnormal">4.</td>
										  <td class="textnormal">Service fee of call screening service 
											<table width="100%">
											  <tr> 
												<td width="5%" valign="top" class="textnormal">4.1</td>
												<td width="95%" class="textnormal">Monthly fee is 30 baht (excl. 7% VAT).</td>
											  </tr>
											  <tr> 
												<td valign="top" class="textnormal">4.2</td>
												<td class="textnormal">Usage fee of interactive voice response (IVR) system via *7143 is 3 baht per call (excl. 7% VAT).</td>
											  </tr>
											  <tr> 
												<td valign="top" class="textnormal">4.3</td>
												<td class="textnormal">Usage of online service via www.happy.co.th is free of charge.</td>
											  </tr>
											  <tr> 
												<td valign="top" class="textnormal">4.4</td>
												<td class="textnormal">Service fee for SMS notification of unreceived number is 1 baht per message per unreceived number (free SMS fee charge until 31 December 2010).</td>
											  </tr>        
											</table></td>
										</tr>
										<tr> 
										  <td align="center" valign="top" class="textnormal">5.</td>
										  <td class="textnormal">If the subscriber configures a response mode of unreceived call, the number of unreceived call shall have to bear an expense. 
											<table width="100%">
											  <tr> 
												<td width="5%" valign="top" class="textnormal">5.1</td>
												<td width="95%" class="textnormal">In case configured response mode diverts blocked call to the voice mail system, the number whose call was blocked shall be charged at a normal call rate after hearing a prompt message over 6 seconds.</td>
											  </tr>
											  <tr> 
												<td valign="top" class="textnormal">5.2</td>
												<td class="textnormal">In case configured response mode diverts blocked call to the prompt message system, the number whose call was blocked shall be charged at a normal call rate after hearing a prompt message over 8 seconds.</td>
											  </tr> 
											</table></td>
										</tr>
										<tr> 
										  <td align="center" valign="top" class="textnormal">6.</td>
										  <td class="textnormal">The service provider reserves the right to revise terms and conditions of the service provision and cancel this service as deemed appropriate. To learn more information about the terms and conditions, please contact 1678 dtac call center or visit <a href="http://www.happy.co.th" target="_blank">www.happy.co.th</a> The subscriber shall be prohibited from any illegal and unscrupulous exploitation of this service.</td>
										</tr>
									  </table>
									</div></td>
								  <td width="20">&nbsp;</td>
								</tr>
							  </table></td>
						  </tr>
						  <tr> 
							<td>&nbsp;</td>
						  </tr>
						  <tr> 
							<td height="15" align="center"><br></td>
						  </tr>
						  <!--SVLT.VAR:CONF_BOTTOM-->
						</table>
					  </form>
						
						
						
						</div>
						
						
						
						
						</td>
                 	</tr>
              	</table>                
                <!--เนื้อหาสิ้นสุดที่นี่-->
                
            </div>
            <div class="content-bottom"></div>
        </div>
    </div>
</div>
<div id="footer">
<img src="${RESOURCE}/eng/images/copy_right.jpg" />
<a href="http://www.dtac.co.th" target="_blank"><img src="${RESOURCE}/eng/images/dtact_logo.jpg" border="0" /></a>
<a href="http://www.happyvirus.com" target="_blank"><img src="${RESOURCE}/eng/images/virus_icon.jpg" border="0" /></a>
</div>
</body>
</html>
